int	RunTag;
time_t	CurrentTime;
int	NewHour, NewDay, NewMonth, NewYear;
int     KwhNewDay;  //Ryuan 2003.01.18.
struct 	tm	*Cur_Tm;
struct  timeb   Char_Tm;
int	HourKwhClearTag=0, DayKwhClearTag=0;
int	MonthKwhClearTag=0, YearKwhClearTag=0;
int	ForecastTag = 0;
int	DayLimitClearTag=0, MonthLimitClearTag=0, YearLimitClearTag=0;
int	SysFacId=0;
int	SysTotalPCompId=0, SysTotalQCompId=0;
int	KwhComTag = 0;
int	RateComTag[MAX_RATE_NUM];
int	MonthClearTag[MAX_RATE_NUM];
int	YearClearTag[MAX_RATE_NUM];
int	PlanComTag = 0;
int	HIGH1_START=0, HIGH1_END=0;
int	HIGH2_START=0, HIGH2_END=0;
int	LOW1_START=0, LOW1_END=0;
int	LOW2_START=0, LOW2_END=0;
int	LIMIT_FLAG=0;
int	DayRateClearTag = 0;
struct	timeb Warn_Tm;
int	WarnCount=0;
int*	pWarnList=NULL;
extern int time_t_to_oracle_date_string(time_t osdate,char *result);
